
namespace JTZY.Model.Pay
{
    /// <summary>
    /// 支付单表
    /// </summary>
    [SugarTable("corecmsbillpayments")]
    public class Corecmsbillpayments
    {
        /// <summary>
        /// 支付单号 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string PaymentId { get; set; }

        /// <summary>
        /// 资源编号 
        /// </summary>
        public string SourceId { get; set; }

        /// <summary>
        /// 支付金额 
        /// </summary>
        public decimal Money { get; set; }

        /// <summary>
        /// 用户ID 关联user.id 
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 单据类型 
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 支付状态 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 支付类型编码 关联payments.code 
        /// </summary>
        public string PaymentCode { get; set; }

        /// <summary>
        /// 支付单生成IP 
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 支付的时候需要的参数，存的是json格式的一维数组 
        /// </summary>
        public string Parameters { get; set; }

        /// <summary>
        /// 支付回调后的状态描述 
        /// </summary>
        public string PayedMsg { get; set; }

        /// <summary>
        /// 第三方平台交易流水号 
        /// </summary>
        public string TradeNo { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string MchId { get; set; }
    }
}